package com.chencs.common.lmadmin.service;

import com.chencs.common.lmadmin.mapper.LmWebProductMapper;
import com.chencs.vo.biz.lianmeng.LmCategory;
import com.chencs.vo.biz.lianmeng.LmCategory_item;
import com.chencs.vo.biz.lianmeng.LmProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LmProductService {
    /**
     *
     */


    @Autowired
    private LmWebProductMapper webProductMapper;

    public  List<LmProduct> getProductList(){
         return  webProductMapper.getProductList();
     }

    public List<LmCategory> getLmCategory(){
         return  webProductMapper.getLmCategory();
    }

    public List<LmCategory_item> getLmCategoryItem(String cid){
        return  webProductMapper.getLmCategoryItem(cid);
    }


    public LmCategory findLmCategory(String id){
        return  webProductMapper.findLmCategory(id);
    }


    public void insertLmCategory(LmCategory lmCategory){
        webProductMapper.insertLmCategory(lmCategory);
    }

    public void updateLmCategory(LmCategory category){
        webProductMapper.updateLmCategory(category);
    }

    public LmCategory_item findLmCategory_item(String id){
        return  webProductMapper.findLmCategory_item(id);
    }

    public void  insertLmCategory_item(LmCategory_item category_item){

        webProductMapper.insertLmCategory_item(category_item);
    }

    public void  updateLmCategory_item(LmCategory_item item){
        webProductMapper.updateLmCategory_item(item);
    }




}
